package com.hzlj.position.dbsync.guangdong.controller;


import com.fz.common.base.dto.ResultDTO;
import com.hzlj.position.dbsync.guangdong.rest.GuangdongLocateSyncRest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 【主动音频上报】接口
 *
 * @author makejava
 * @date 2024-01-15 10:49:15
 */
@Slf4j
@RestController
@RequestMapping("/position/locate/guangdong")
public class GuangdongLocateSyncController {
    @Resource
    private GuangdongLocateSyncRest guangdongLocateSyncRest;


    /**
     * 同步运营商数据
     */
    @GetMapping(value = "/syncOperator")
    public ResultDTO<Integer> syncOperator() {
        return new ResultDTO<>(
                guangdongLocateSyncRest.syncOperator()
        );
    }

    /**
     * 同步app数据
     */
    @GetMapping(value = "/syncApp")
    public ResultDTO<Integer> syncApp() {
        return new ResultDTO<>(
                guangdongLocateSyncRest.syncApp()
        );
    }

}

